home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / libx11 / include / x11 / intrinsic.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  64KB  |  2,791 lines

  1. /* $XConsortium: Intrinsic.h,v 1.174 91/09/09 16:25:56 converse Exp $ */
  2.  
  3. /***********************************************************
  4. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  5. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  6.  
  7.             All Rights Reserved
  8.  
  9. Permission to use, copy, modify, and distribute this software and its 
  10. documentation for any purpose and without fee is hereby granted, 
  11. provided that the above copyright notice appear in all copies and that
  12. both that copyright notice and this permission notice appear in 
  13. supporting documentation, and that the names of Digital or MIT not be
  14. used in advertising or publicity pertaining to distribution of the
  15. software without specific, written prior permission.  
  16.  
  17. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  18. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  19. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  20. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  22. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  23. SOFTWARE.
  24.  
  25. ******************************************************************/
  26.  
  27. #ifndef _XtIntrinsic_h
  28. #define _XtIntrinsic_h
  29.  
  30. #include    <X11/Xlib.h>
  31. #include    <X11/Xutil.h>
  32. #include    <X11/Xresource.h>
  33. #include    <X11/Xfuncproto.h>
  34. #ifdef XT_BC
  35. #include <X11/Xos.h>        /* for R4 compatibility */
  36. #else
  37. #include <X11/Xosdefs.h>
  38. #ifndef X_NOT_STDC_ENV
  39. #include <string.h>        /* for XtNewString */
  40. #else
  41. #ifdef SYSV
  42. #include <string.h>
  43. #else
  44. #include <strings.h>
  45. #endif /* SYSV else */
  46. #endif /* !X_NOT_STDC_ENV else */
  47. #endif /* XT_BC else */
  48.  
  49. #define XtSpecificationRelease 5
  50.  
  51. typedef char *String;
  52.  
  53. #if NeedFunctionPrototypes
  54.  
  55. /* We do this in order to get "const" declarations to work right.  We
  56.  * use _XtString instead of String so that C++ applications can
  57.  * #define String to something else if they choose, to avoid conflicts
  58.  * with other C++ libraries.
  59.  */
  60. #define _XtString char*
  61.  
  62. /* _Xt names are private to Xt implementation, do not use in client code */
  63. #if NeedWidePrototypes
  64. #define _XtBoolean    int
  65. #define _XtDimension    unsigned int
  66. #define _XtKeyCode    unsigned int
  67. #define _XtPosition    int
  68. #define _XtXtEnum    unsigned int
  69. #else
  70. #define _XtBoolean    Boolean
  71. #define _XtDimension    Dimension
  72. #define _XtKeyCode    KeyCode
  73. #define _XtPosition    Position
  74. #define _XtXtEnum    XtEnum
  75. #endif /* NeedWidePrototypes */
  76.  
  77. #endif /* NeedFunctionPrototypes */
  78.  
  79. #ifndef NULL
  80. #define NULL 0
  81. #endif
  82.  
  83. #ifdef VMS
  84. #define externalref globalref
  85. #define externaldef(psect) globaldef {"psect"} noshare
  86. #else
  87. #define externalref extern
  88. #define externaldef(psect)
  89. #endif /* VMS */
  90.  
  91. #ifndef FALSE
  92. #define FALSE 0
  93. #define TRUE 1
  94. #endif
  95.  
  96. #define XtNumber(arr)        ((Cardinal) (sizeof(arr) / sizeof(arr[0])))
  97.  
  98. typedef struct _WidgetRec *Widget;
  99. typedef Widget *WidgetList;
  100. typedef struct _WidgetClassRec *WidgetClass;
  101. typedef struct _CompositeRec *CompositeWidget;
  102. typedef struct _XtActionsRec *XtActionList;
  103. typedef struct _XtEventRec *XtEventTable;
  104. typedef struct _XtBoundAccActionRec *XtBoundAccActions;
  105.  
  106. typedef struct _XtAppStruct *XtAppContext;
  107. typedef unsigned long    XtValueMask;
  108. typedef unsigned long    XtIntervalId;
  109. typedef unsigned long    XtInputId;
  110. typedef unsigned long    XtWorkProcId;
  111. typedef unsigned int    XtGeometryMask;
  112. typedef unsigned long    XtGCMask;   /* Mask of values that are used by widget*/
  113. typedef unsigned long    Pixel;        /* Index into colormap        */
  114. typedef int        XtCacheType;
  115. #define            XtCacheNone      0x001
  116. #define            XtCacheAll      0x002
  117. #define            XtCacheByDisplay  0x003
  118. #define            XtCacheRefCount      0x100
  119.  
  120. /****************************************************************
  121.  *
  122.  * System Dependent Definitions; see spec for specific range
  123.  * requirements.  Do not assume every implementation uses the
  124.  * same base types!
  125.  *
  126.  *
  127.  * XtArgVal ought to be a union of XtPointer, char *, long, int *, and proc *
  128.  * but casting to union types is not really supported.
  129.  *
  130.  * So the typedef for XtArgVal should be chosen such that
  131.  *
  132.  *    sizeof (XtArgVal) >=    sizeof(XtPointer)
  133.  *                sizeof(char *)
  134.  *                sizeof(long)
  135.  *                sizeof(int *)
  136.  *                sizeof(proc *)
  137.  *
  138.  * ArgLists rely heavily on the above typedef.
  139.  *
  140.  ****************************************************************/
  141. #ifdef CRAY
  142. typedef long        Boolean;
  143. typedef char*        XtArgVal;
  144. typedef long        XtEnum;
  145. #else
  146. typedef char        Boolean;
  147. typedef long        XtArgVal;
  148. typedef unsigned char    XtEnum;
  149. #endif
  150.  
  151. typedef unsigned int    Cardinal;
  152. typedef unsigned short    Dimension;  /* Size in pixels            */
  153. typedef short        Position;   /* Offset from 0 coordinate        */
  154.  
  155. #if NeedFunctionPrototypes
  156. typedef void*        XtPointer;
  157. #else
  158. typedef char*        XtPointer;
  159. #endif
  160.  
  161. /* The type Opaque is NOT part of the Xt standard, do NOT use it. */
  162. /* (It remains here only for backward compatibility.) */
  163. typedef XtPointer    Opaque;
  164.  
  165. #include <X11/Core.h>
  166. #include <X11/Composite.h>
  167. #include <X11/Constraint.h>
  168. #include <X11/Object.h>
  169. #include <X11/RectObj.h>
  170.  
  171. typedef struct _TranslationData *XtTranslations;
  172. typedef struct _TranslationData *XtAccelerators;
  173. typedef unsigned int Modifiers;
  174.  
  175. typedef void (* XtActionProc)(
  176. #if NeedFunctionPrototypes
  177.     Widget         /* widget */,
  178.     XEvent*        /* event */,
  179.     String*        /* params */,
  180.     Cardinal*        /* num_params */
  181. #endif
  182. );
  183.  
  184. typedef XtActionProc* XtBoundActions;
  185.  
  186. typedef struct _XtActionsRec{
  187.     String     string;
  188.     XtActionProc proc;
  189. } XtActionsRec;
  190.  
  191. typedef enum {
  192. /* address mode        parameter representation    */
  193. /* ------------        ------------------------    */
  194.     XtAddress,        /* address            */
  195.     XtBaseOffset,    /* offset            */
  196.     XtImmediate,    /* constant            */
  197.     XtResourceString,    /* resource name string        */
  198.     XtResourceQuark,    /* resource name quark        */
  199.     XtWidgetBaseOffset,    /* offset from ancestor        */
  200.     XtProcedureArg    /* procedure to invoke        */
  201. } XtAddressMode;
  202.  
  203. typedef struct {
  204.     XtAddressMode   address_mode;
  205.     XtPointer        address_id;
  206.     Cardinal        size;
  207. } XtConvertArgRec, *XtConvertArgList;
  208.  
  209. typedef void (*XtConvertArgProc)(
  210. #if NeedFunctionPrototypes
  211.     Widget         /* widget */,
  212.     Cardinal*        /* size */,
  213.     XrmValue*        /* value */
  214. #endif
  215. );
  216.  
  217. typedef struct {
  218.     XtGeometryMask request_mode;
  219.     Position x, y;
  220.     Dimension width, height, border_width;
  221.     Widget sibling;
  222.     int stack_mode;   /* Above, Below, TopIf, BottomIf, Opposite, DontChange */
  223. } XtWidgetGeometry;
  224.  
  225. /* Additions to Xlib geometry requests: ask what would happen, don't do it */
  226. #define XtCWQueryOnly    (1 << 7)
  227.  
  228. /* Additions to Xlib stack modes: don't change stack order */
  229. #define XtSMDontChange    5
  230.  
  231. typedef void (*XtConverter)( /* obsolete */
  232. #if NeedFunctionPrototypes
  233.     XrmValue*        /* args */,
  234.     Cardinal*        /* num_args */,
  235.     XrmValue*        /* from */,
  236.     XrmValue*        /* to */
  237. #endif
  238. );
  239.  
  240. typedef Boolean (*XtTypeConverter)(
  241. #if NeedFunctionPrototypes
  242.     Display*        /* dpy */,
  243.     XrmValue*        /* args */,
  244.     Cardinal*        /* num_args */,
  245.     XrmValue*        /* from */,
  246.     XrmValue*        /* to */,
  247.     XtPointer*        /* converter_data */
  248. #endif
  249. );
  250.  
  251. typedef void (*XtDestructor)(
  252. #if NeedFunctionPrototypes
  253.     XtAppContext    /* app */,
  254.     XrmValue*        /* to */,
  255.     XtPointer         /* converter_data */,
  256.     XrmValue*        /* args */,
  257.     Cardinal*        /* num_args */
  258. #endif
  259. );
  260.  
  261. typedef Opaque XtCacheRef;
  262.  
  263. typedef Opaque XtActionHookId;
  264.  
  265. typedef void (*XtActionHookProc)(
  266. #if NeedFunctionPrototypes
  267.     Widget        /* w */,
  268.     XtPointer        /* client_data */,
  269.     String        /* action_name */,
  270.     XEvent*        /* event */,
  271.     String*        /* params */,
  272.     Cardinal*        /* num_params */
  273. #endif
  274. );
  275.  
  276. typedef void (*XtKeyProc)(
  277. #if NeedFunctionPrototypes
  278.     Display*        /* dpy */,
  279.     _XtKeyCode         /* keycode */,
  280.     Modifiers        /* modifiers */,
  281.     Modifiers*        /* modifiers_return */,
  282.     KeySym*        /* keysym_return */
  283. #endif
  284. );
  285.  
  286. typedef void (*XtCaseProc)(
  287. #if NeedFunctionPrototypes
  288.     Display*        /* display */,
  289.     KeySym        /* keysym */,
  290.     KeySym*        /* lower_return */,
  291.     KeySym*        /* upper_return */
  292. #endif
  293. );
  294.  
  295. typedef void (*XtEventHandler)(
  296. #if NeedFunctionPrototypes
  297.     Widget         /* widget */,
  298.     XtPointer         /* closure */,
  299.     XEvent*        /* event */,
  300.     Boolean*        /* continue_to_dispatch */
  301. #endif
  302. );
  303. typedef unsigned long EventMask;
  304.  
  305. typedef enum {XtListHead, XtListTail } XtListPosition;
  306.  
  307. typedef unsigned long    XtInputMask;
  308. #define XtInputNoneMask        0L
  309. #define XtInputReadMask        (1L<<0)
  310. #define XtInputWriteMask    (1L<<1)
  311. #define XtInputExceptMask    (1L<<2)
  312.  
  313. typedef void (* XtTimerCallbackProc)(
  314. #if NeedFunctionPrototypes
  315.     XtPointer         /* closure */,
  316.     XtIntervalId*    /* id */
  317. #endif
  318. );
  319.  
  320. typedef void (*XtInputCallbackProc)(
  321. #if NeedFunctionPrototypes
  322.     XtPointer         /* closure */,
  323.     int*        /* source */,
  324.     XtInputId*        /* id */
  325. #endif
  326. );
  327.  
  328. typedef struct {
  329.     String    name;
  330.     XtArgVal    value;
  331. } Arg, *ArgList;
  332.  
  333. typedef XtPointer    XtVarArgsList;
  334.  
  335. typedef void (*XtCallbackProc)(
  336. #if NeedFunctionPrototypes
  337.     Widget         /* widget */,
  338.     XtPointer         /* closure */,    /* data the application registered */
  339.     XtPointer         /* call_data */    /* callback specific data */
  340. #endif
  341. );
  342.  
  343. typedef struct _XtCallbackRec {
  344.     XtCallbackProc  callback;
  345.     XtPointer        closure;
  346. } XtCallbackRec, *XtCallbackList;
  347.  
  348. typedef enum {
  349.     XtCallbackNoList,
  350.     XtCallbackHasNone,
  351.     XtCallbackHasSome
  352. } XtCallbackStatus;
  353.  
  354. typedef enum  {
  355.     XtGeometryYes,      /* Request accepted. */
  356.     XtGeometryNo,      /* Request denied. */
  357.     XtGeometryAlmost,      /* Request denied, but willing to take replyBox. */
  358.     XtGeometryDone      /* Request accepted and done. */
  359. } XtGeometryResult;
  360.  
  361. typedef enum {XtGrabNone, XtGrabNonexclusive, XtGrabExclusive} XtGrabKind;
  362.  
  363. typedef struct {
  364.     Widget  shell_widget;
  365.     Widget  enable_widget;
  366. } XtPopdownIDRec, *XtPopdownID;
  367.  
  368. typedef struct _XtResource {
  369.     String    resource_name;    /* Resource name                */
  370.     String    resource_class;    /* Resource class                */
  371.     String    resource_type;    /* Representation type desired            */
  372.     Cardinal    resource_size;    /* Size in bytes of representation        */
  373.     Cardinal    resource_offset;/* Offset from base to put resource value   */
  374.     String    default_type;    /* representation type of specified default */
  375.     XtPointer    default_addr;    /* Address of default resource            */
  376. } XtResource, *XtResourceList;
  377.  
  378. typedef void (*XtResourceDefaultProc)(
  379. #if NeedFunctionPrototypes
  380.     Widget    /* widget */,
  381.     int        /* offset */,
  382.     XrmValue*    /* value */
  383. #endif
  384. );
  385.  
  386. typedef String (*XtLanguageProc)(
  387. #if NeedFunctionPrototypes
  388.     Display*    /* dpy */,
  389.     String    /* xnl */,
  390.     XtPointer    /* client_data */
  391. #endif
  392. );
  393.  
  394. typedef void (*XtErrorMsgHandler)(
  395. #if NeedFunctionPrototypes
  396.     String         /* name */,
  397.     String        /* type */,
  398.     String        /* class */,
  399.     String        /* default */,
  400.     String*        /* params */,
  401.     Cardinal*        /* num_params */
  402. #endif
  403. );
  404.  
  405. typedef void (*XtErrorHandler)(
  406. #if NeedFunctionPrototypes
  407.   String        /* msg */
  408. #endif
  409. );
  410.  
  411. typedef void (*XtCreatePopupChildProc)(
  412. #if NeedFunctionPrototypes
  413.     Widget    /* shell */
  414. #endif
  415. );
  416.  
  417. typedef Boolean (*XtWorkProc)(
  418. #if NeedFunctionPrototypes
  419.     XtPointer         /* closure */    /* data the application registered */
  420. #endif
  421. );
  422.  
  423. typedef struct {
  424.     char match;
  425.     String substitution;
  426. } SubstitutionRec, *Substitution;
  427.  
  428. typedef Boolean (*XtFilePredicate)(
  429. #if NeedFunctionPrototypes
  430.    String /* filename */
  431. #endif
  432. );
  433.  
  434. typedef XtPointer XtRequestId;
  435.  
  436. typedef Boolean (*XtConvertSelectionProc)(
  437. #if NeedFunctionPrototypes
  438.     Widget         /* widget */,
  439.     Atom*        /* selection */,
  440.     Atom*        /* target */,
  441.     Atom*        /* type_return */,
  442.     XtPointer*        /* value_return */,
  443.     unsigned long*    /* length_return */,
  444.     int*        /* format_return */
  445. #endif
  446. );
  447.  
  448. typedef void (*XtLoseSelectionProc)(
  449. #if NeedFunctionPrototypes
  450.     Widget         /* widget */,
  451.     Atom*        /* selection */
  452. #endif
  453. );
  454.  
  455. typedef void (*XtSelectionDoneProc)(
  456. #if NeedFunctionPrototypes
  457.     Widget         /* widget */,
  458.     Atom*        /* selection */,
  459.     Atom*        /* target */
  460. #endif
  461. );
  462.  
  463. typedef void (*XtSelectionCallbackProc)(
  464. #if NeedFunctionPrototypes
  465.     Widget         /* widget */,
  466.     XtPointer         /* closure */,
  467.     Atom*        /* selection */,
  468.     Atom*        /* type */,
  469.     XtPointer         /* value */,
  470.     unsigned long*    /* length */,
  471.     int*        /* format */
  472. #endif
  473. );
  474.  
  475. typedef void (*XtLoseSelectionIncrProc)(
  476. #if NeedFunctionPrototypes
  477.     Widget         /* widget */,
  478.     Atom*        /* selection */,
  479.     XtPointer         /* client_data */
  480. #endif
  481. );
  482.  
  483. typedef void (*XtSelectionDoneIncrProc)(
  484. #if NeedFunctionPrototypes
  485.     Widget         /* widget */,
  486.     Atom*        /* selection */,
  487.     Atom*        /* target */,
  488.     XtRequestId*    /* receiver_id */,
  489.     XtPointer         /* client_data */
  490. #endif
  491. );
  492.  
  493. typedef Boolean (*XtConvertSelectionIncrProc)(
  494. #if NeedFunctionPrototypes
  495.     Widget         /* widget */,
  496.     Atom*        /* selection */,
  497.     Atom*        /* target */,
  498.     Atom*        /* type */,
  499.     XtPointer*        /* value */,
  500.     unsigned long*    /* length */,
  501.     int*        /* format */,
  502.     unsigned long*    /* max_length */,
  503.     XtPointer         /* client_data */,
  504.     XtRequestId*    /* receiver_id */
  505. #endif
  506. );
  507.  
  508. typedef void (*XtCancelConvertSelectionProc)(
  509. #if NeedFunctionPrototypes
  510.     Widget         /* widget */,
  511.     Atom*        /* selection */,
  512.     Atom*        /* target */,
  513.     XtRequestId*    /* receiver_id */,
  514.     XtPointer         /* client_data */
  515. #endif
  516. );
  517.  
  518. /***************************************************************
  519.  *
  520.  * Exported Interfaces
  521.  *
  522.  ****************************************************************/
  523.  
  524. _XFUNCPROTOBEGIN
  525.  
  526. #ifndef MAKELIBRARY
  527.  
  528. extern Boolean XtConvertAndStore(
  529. #if NeedFunctionPrototypes
  530.     Widget         /* widget */,
  531.     _Xconst _XtString     /* from_type */,
  532.     XrmValue*        /* from */,
  533.     _Xconst _XtString     /* to_type */,
  534.     XrmValue*        /* to_in_out */
  535. #endif
  536. );
  537.  
  538. extern Boolean XtCallConverter(
  539. #if NeedFunctionPrototypes
  540.     Display*        /* dpy */,
  541.     XtTypeConverter     /* converter */,
  542.     XrmValuePtr     /* args */,
  543.     Cardinal         /* num_args */,
  544.     XrmValuePtr     /* from */,
  545.     XrmValue*        /* to_in_out */,
  546.     XtCacheRef*        /* cache_ref_return */
  547. #endif
  548. );
  549.  
  550. extern Boolean XtDispatchEvent(
  551. #if NeedFunctionPrototypes
  552.     XEvent*         /* event */
  553. #endif
  554. );
  555.  
  556. extern Boolean XtCallAcceptFocus(
  557. #if NeedFunctionPrototypes
  558.     Widget         /* widget */,
  559.     Time*        /* time */
  560. #endif
  561. );
  562.  
  563. extern Boolean XtPeekEvent( /* obsolete */
  564. #if NeedFunctionPrototypes
  565.     XEvent*        /* event_return */
  566. #endif
  567. );
  568.  
  569. extern Boolean XtAppPeekEvent(
  570. #if NeedFunctionPrototypes
  571.     XtAppContext     /* app_context */,
  572.     XEvent*        /* event_return */
  573. #endif
  574. );
  575.  
  576. extern Boolean XtIsSubclass(
  577. #if NeedFunctionPrototypes
  578.     Widget         /* widget */,
  579.     WidgetClass     /* widgetClass */
  580. #endif
  581. );
  582.  
  583. extern Boolean XtIsObject(
  584. #if NeedFunctionPrototypes
  585.     Widget         /* object */
  586. #endif
  587. );
  588.  
  589. extern Boolean _XtCheckSubclassFlag( /* implementation-private */
  590. #if NeedFunctionPrototypes
  591.     Widget        /* object */,
  592.     _XtXtEnum        /* type_flag */
  593. #endif
  594. );
  595.  
  596. extern Boolean _XtIsSubclassOf( /* implementation-private */
  597. #if NeedFunctionPrototypes
  598.     Widget        /* object */,
  599.     WidgetClass        /* widget_class */,
  600.     WidgetClass        /* flag_class */,
  601.     _XtXtEnum        /* type_flag */
  602. #endif
  603. );
  604.  
  605. extern Boolean XtIsManaged(
  606. #if NeedFunctionPrototypes
  607.     Widget         /* rectobj */
  608. #endif
  609. );
  610.  
  611. extern Boolean XtIsRealized(
  612. #if NeedFunctionPrototypes
  613.     Widget         /* widget */
  614. #endif
  615. );
  616.  
  617. extern Boolean XtIsSensitive(
  618. #if NeedFunctionPrototypes
  619.     Widget         /* widget */
  620. #endif
  621. );
  622.  
  623. extern Boolean XtOwnSelection(
  624. #if NeedFunctionPrototypes
  625.     Widget         /* widget */,
  626.     Atom         /* selection */,
  627.     Time         /* time */,
  628.     XtConvertSelectionProc /* convert */,
  629.     XtLoseSelectionProc    /* lose */,
  630.     XtSelectionDoneProc /* done */
  631. #endif
  632. );
  633.  
  634. extern Boolean XtOwnSelectionIncremental(
  635. #if NeedFunctionPrototypes
  636.     Widget         /* widget */,
  637.     Atom         /* selection */,
  638.     Time         /* time */,
  639.     XtConvertSelectionIncrProc    /* convert_callback */,
  640.     XtLoseSelectionIncrProc    /* lose_callback */,
  641.     XtSelectionDoneIncrProc    /* done_callback */,
  642.     XtCancelConvertSelectionProc /* cancel_callback */,
  643.     XtPointer         /* client_data */
  644. #endif
  645. );
  646.  
  647. extern XtGeometryResult XtMakeResizeRequest(
  648. #if NeedFunctionPrototypes
  649.     Widget         /* widget */,
  650.     _XtDimension    /* width */,
  651.     _XtDimension    /* height */,
  652.     Dimension*        /* width_return */,
  653.     Dimension*        /* height_return */
  654. #endif
  655. );
  656.  
  657. extern void XtTranslateCoords(
  658. #if NeedFunctionPrototypes
  659.     Widget         /* widget */,
  660.     _XtPosition        /* x */,
  661.     _XtPosition        /* y */,
  662.     Position*        /* rootx_return */,
  663.     Position*        /* rooty_return */
  664. #endif
  665. );
  666.  
  667. extern KeySym* XtGetKeysymTable(
  668. #if NeedFunctionPrototypes
  669.     Display*        /* dpy */,
  670.     KeyCode*        /* min_keycode_return */,
  671.     int*        /* keysyms_per_keycode_return */
  672. #endif
  673. );
  674.  
  675. extern void XtKeysymToKeycodeList(
  676. #if NeedFunctionPrototypes
  677.     Display*        /* dpy */,
  678.     KeySym         /* keysym */,
  679.     KeyCode**        /* keycodes_return */,
  680.     Cardinal*        /* keycount_return */
  681. #endif
  682. );
  683.  
  684. extern void XtStringConversionWarning( /* obsolete */
  685. #if NeedFunctionPrototypes
  686.     _Xconst _XtString    /* from_value */,
  687.     _Xconst _XtString    /* to_type */
  688. #endif
  689. );
  690.  
  691. extern void XtDisplayStringConversionWarning(
  692. #if NeedFunctionPrototypes
  693.     Display*         /* dpy */,
  694.     _Xconst _XtString    /* from_value */,
  695.     _Xconst _XtString    /* to_type */
  696. #endif
  697. );
  698.  
  699. #if __STDC__
  700. externalref XtConvertArgRec const colorConvertArgs[];
  701. externalref XtConvertArgRec const screenConvertArg[];
  702. #else
  703. externalref XtConvertArgRec colorConvertArgs[];
  704. externalref XtConvertArgRec screenConvertArg[];
  705. #endif
  706.  
  707. extern void XtAppAddConverter( /* obsolete */
  708. #if NeedFunctionPrototypes
  709.     XtAppContext    /* app_context */,
  710.     _Xconst _XtString    /* from_type */,
  711.     _Xconst _XtString    /* to_type */,
  712.     XtConverter     /* converter */,
  713.     XtConvertArgList    /* convert_args */,
  714.     Cardinal         /* num_args */
  715. #endif
  716. );
  717.  
  718. extern void XtAddConverter( /* obsolete */
  719. #if NeedFunctionPrototypes
  720.     _Xconst _XtString    /* from_type */,
  721.     _Xconst _XtString     /* to_type */,
  722.     XtConverter     /* converter */,
  723.     XtConvertArgList     /* convert_args */,
  724.     Cardinal         /* num_args */
  725. #endif
  726. );
  727.  
  728. extern void XtSetTypeConverter(
  729. #if NeedFunctionPrototypes
  730.     _Xconst _XtString     /* from_type */,
  731.     _Xconst _XtString     /* to_type */,
  732.     XtTypeConverter     /* converter */,
  733.     XtConvertArgList     /* convert_args */,
  734.     Cardinal         /* num_args */,
  735.     XtCacheType     /* cache_type */,
  736.     XtDestructor     /* destructor */
  737. #endif
  738. );
  739.  
  740. extern void XtAppSetTypeConverter(
  741. #if NeedFunctionPrototypes
  742.     XtAppContext     /* app_context */,
  743.     _Xconst _XtString     /* from_type */,
  744.     _Xconst _XtString     /* to_type */,
  745.     XtTypeConverter     /* converter */,
  746.     XtConvertArgList     /* convert_args */,
  747.     Cardinal         /* num_args */,
  748.     XtCacheType     /* cache_type */,
  749.     XtDestructor     /* destructor */
  750. #endif
  751. );
  752.  
  753. extern void XtConvert( /* obsolete */
  754. #if NeedFunctionPrototypes
  755.     Widget         /* widget */,
  756.     _Xconst _XtString     /* from_type */,
  757.     XrmValue*        /* from */,
  758.     _Xconst _XtString     /* to_type */,
  759.     XrmValue*        /* to_return */
  760. #endif
  761. );
  762.  
  763. extern void XtDirectConvert( /* obsolete */
  764. #if NeedFunctionPrototypes
  765.     XtConverter     /* converter */,
  766.     XrmValuePtr     /* args */,
  767.     Cardinal         /* num_args */,
  768.     XrmValuePtr     /* from */,
  769.     XrmValue*        /* to_return */
  770. #endif
  771. );
  772.  
  773. /****************************************************************
  774.  *
  775.  * Translation Management
  776.  *
  777.  ****************************************************************/
  778.  
  779. extern XtTranslations XtParseTranslationTable(
  780. #if NeedFunctionPrototypes
  781.     _Xconst _XtString    /* table */
  782. #endif
  783. );
  784.  
  785. extern XtAccelerators XtParseAcceleratorTable(
  786. #if NeedFunctionPrototypes
  787.     _Xconst _XtString    /* source */
  788. #endif
  789. );
  790.  
  791. extern void XtOverrideTranslations(
  792. #if NeedFunctionPrototypes
  793.     Widget         /* widget */,
  794.     XtTranslations     /* translations */
  795. #endif
  796. );
  797.  
  798. extern void XtAugmentTranslations(
  799. #if NeedFunctionPrototypes
  800.     Widget         /* widget */,
  801.     XtTranslations     /* translations */
  802. #endif
  803. );
  804.  
  805. extern void XtInstallAccelerators(
  806. #if NeedFunctionPrototypes
  807.     Widget         /* destination */,
  808.     Widget        /* source */
  809. #endif
  810. );
  811.  
  812. extern void XtInstallAllAccelerators(
  813. #if NeedFunctionPrototypes
  814.     Widget         /* destination */,
  815.     Widget        /* source */
  816. #endif
  817. );
  818.  
  819. extern void XtUninstallTranslations(
  820. #if NeedFunctionPrototypes
  821.     Widget         /* widget */
  822. #endif
  823. );
  824.  
  825. extern void XtAppAddActions(
  826. #if NeedFunctionPrototypes
  827.     XtAppContext     /* app_context */,
  828.     XtActionList     /* actions */,
  829.     Cardinal         /* num_actions */
  830. #endif
  831. );
  832.  
  833. extern void XtAddActions( /* obsolete */
  834. #if NeedFunctionPrototypes
  835.     XtActionList     /* actions */,
  836.     Cardinal         /* num_actions */
  837. #endif
  838. );
  839.  
  840. extern XtActionHookId XtAppAddActionHook(
  841. #if NeedFunctionPrototypes
  842.     XtAppContext     /* app_context */,
  843.     XtActionHookProc     /* proc */,
  844.     XtPointer         /* client_data */
  845. #endif
  846. );
  847.  
  848. extern void XtRemoveActionHook(
  849. #if NeedFunctionPrototypes
  850.     XtActionHookId     /* id */
  851. #endif
  852. );
  853.  
  854. extern void XtGetActionList(
  855. #if NeedFunctionPrototypes
  856.     WidgetClass        /* widget_class */,
  857.     XtActionList*    /* actions_return */,
  858.     Cardinal*        /* num_actions_return */
  859. #endif
  860. );
  861.  
  862. extern void XtCallActionProc(
  863. #if NeedFunctionPrototypes
  864.     Widget        /* widget */,
  865.     _Xconst _XtString    /* action */,
  866.     XEvent*        /* event */,
  867.     String*        /* params */,
  868.     Cardinal        /* num_params */
  869. #endif
  870. );
  871.  
  872. extern void XtRegisterGrabAction(
  873. #if NeedFunctionPrototypes
  874.     XtActionProc     /* action_proc */,
  875.     _XtBoolean         /* owner_events */,
  876.     unsigned int     /* event_mask */,
  877.     int            /* pointer_mode */,
  878.     int             /* keyboard_mode */
  879. #endif
  880. );
  881.  
  882. extern void XtSetMultiClickTime(
  883. #if NeedFunctionPrototypes
  884.     Display*        /* dpy */,
  885.     int         /* milliseconds */
  886. #endif
  887. );
  888.  
  889. extern int XtGetMultiClickTime(
  890. #if NeedFunctionPrototypes
  891.     Display*        /* dpy */
  892. #endif
  893. );
  894.  
  895. extern KeySym XtGetActionKeysym(
  896. #if NeedFunctionPrototypes
  897.     XEvent*        /* event */,
  898.     Modifiers*        /* modifiers_return */
  899. #endif
  900. );
  901.  
  902. /***************************************************************
  903.  *
  904.  * Keycode and Keysym procedures for translation management
  905.  *
  906.  ****************************************************************/
  907.  
  908. extern void XtTranslateKeycode(
  909. #if NeedFunctionPrototypes
  910.     Display*        /* dpy */,
  911.     _XtKeyCode         /* keycode */,
  912.     Modifiers         /* modifiers */,
  913.     Modifiers*        /* modifiers_return */,
  914.     KeySym*        /* keysym_return */
  915. #endif
  916. );
  917.  
  918. extern void XtTranslateKey(
  919. #if NeedFunctionPrototypes
  920.     Display*        /* dpy */,
  921.     _XtKeyCode        /* keycode */,
  922.     Modifiers        /* modifiers */,
  923.     Modifiers*        /* modifiers_return */,
  924.     KeySym*        /* keysym_return */
  925. #endif
  926. );
  927.  
  928. extern void XtSetKeyTranslator(
  929. #if NeedFunctionPrototypes
  930.     Display*        /* dpy */,
  931.     XtKeyProc         /* proc */
  932. #endif
  933. );
  934.  
  935. extern void XtRegisterCaseConverter(
  936. #if NeedFunctionPrototypes
  937.     Display*        /* dpy */,
  938.     XtCaseProc         /* proc */,
  939.     KeySym         /* start */,
  940.     KeySym         /* stop */
  941. #endif
  942. );
  943.  
  944. extern void XtConvertCase(
  945. #if NeedFunctionPrototypes
  946.     Display*        /* dpy */,
  947.     KeySym         /* keysym */,
  948.     KeySym*        /* lower_return */,
  949.     KeySym*        /* upper_return */
  950. #endif
  951. );
  952.  
  953. /****************************************************************
  954.  *
  955.  * Event Management
  956.  *
  957.  ****************************************************************/
  958.  
  959. /* XtAllEvents is valid only for XtRemoveEventHandler and
  960.  * XtRemoveRawEventHandler; don't use it to select events!
  961.  */
  962. #define XtAllEvents ((EventMask) -1L)
  963.  
  964. extern void XtAddEventHandler(
  965. #if NeedFunctionPrototypes
  966.     Widget         /* widget */,
  967.     EventMask         /* event_mask */,
  968.     _XtBoolean         /* nonmaskable */,
  969.     XtEventHandler     /* proc */,
  970.     XtPointer         /* closure */
  971. #endif
  972. );
  973.  
  974. extern void XtRemoveEventHandler(
  975. #if NeedFunctionPrototypes
  976.     Widget         /* widget */,
  977.     EventMask         /* event_mask */,
  978.     _XtBoolean         /* nonmaskable */,
  979.     XtEventHandler     /* proc */,
  980.     XtPointer         /* closure */
  981. #endif
  982. );
  983.  
  984. extern void XtAddRawEventHandler(
  985. #if NeedFunctionPrototypes
  986.     Widget         /* widget */,
  987.     EventMask         /* event_mask */,
  988.     _XtBoolean         /* nonmaskable */,
  989.     XtEventHandler     /* proc */,
  990.     XtPointer         /* closure */
  991. #endif
  992. );
  993.  
  994. extern void XtRemoveRawEventHandler(
  995. #if NeedFunctionPrototypes
  996.     Widget         /* widget */,
  997.     EventMask         /* event_mask */,
  998.     _XtBoolean         /* nonmaskable */,
  999.     XtEventHandler     /* proc */,
  1000.     XtPointer         /* closure */
  1001. #endif
  1002. );
  1003.  
  1004. extern void XtInsertEventHandler(
  1005. #if NeedFunctionPrototypes
  1006.     Widget         /* widget */,
  1007.     EventMask         /* event_mask */,
  1008.     _XtBoolean         /* nonmaskable */,
  1009.     XtEventHandler     /* proc */,
  1010.     XtPointer         /* closure */,
  1011.     XtListPosition     /* position */
  1012. #endif
  1013. );
  1014.  
  1015. extern void XtInsertRawEventHandler(
  1016. #if NeedFunctionPrototypes
  1017.     Widget         /* widget */,
  1018.     EventMask         /* event_mask */,
  1019.     _XtBoolean         /* nonmaskable */,
  1020.     XtEventHandler     /* proc */,
  1021.     XtPointer         /* closure */,
  1022.     XtListPosition     /* position */
  1023. #endif
  1024. );
  1025.  
  1026. extern EventMask XtBuildEventMask(
  1027. #if NeedFunctionPrototypes
  1028.     Widget         /* widget */
  1029. #endif
  1030. );
  1031.  
  1032. extern void XtAddGrab(
  1033. #if NeedFunctionPrototypes
  1034.     Widget         /* widget */,
  1035.     _XtBoolean         /* exclusive */,
  1036.     _XtBoolean         /* spring_loaded */
  1037. #endif
  1038. );
  1039.  
  1040. extern void XtRemoveGrab(
  1041. #if NeedFunctionPrototypes
  1042.     Widget         /* widget */
  1043. #endif
  1044. );
  1045.  
  1046. extern void XtProcessEvent( /* obsolete */
  1047. #if NeedFunctionPrototypes
  1048.     XtInputMask         /* mask */
  1049. #endif
  1050. );
  1051.  
  1052. extern void XtAppProcessEvent(
  1053. #if NeedFunctionPrototypes
  1054.     XtAppContext         /* app_context */,
  1055.     XtInputMask         /* mask */
  1056. #endif
  1057. );
  1058.  
  1059. extern void XtMainLoop( /* obsolete */
  1060. #if NeedFunctionPrototypes
  1061.     void
  1062. #endif
  1063. );
  1064.  
  1065. extern void XtAppMainLoop(
  1066. #if NeedFunctionPrototypes
  1067.     XtAppContext         /* app_context */
  1068. #endif
  1069. );
  1070.  
  1071. extern void XtAddExposureToRegion(
  1072. #if NeedFunctionPrototypes
  1073.     XEvent*        /* event */,
  1074.     Region         /* region */
  1075. #endif
  1076. );
  1077.  
  1078. extern void XtSetKeyboardFocus(
  1079. #if NeedFunctionPrototypes
  1080.     Widget        /* subtree */,
  1081.     Widget         /* descendent */
  1082. #endif
  1083. );
  1084.  
  1085. extern Time XtLastTimestampProcessed(
  1086. #if NeedFunctionPrototypes
  1087.     Display*        /* dpy */
  1088. #endif
  1089. );
  1090.  
  1091. /****************************************************************
  1092.  *
  1093.  * Event Gathering Routines
  1094.  *
  1095.  ****************************************************************/
  1096.  
  1097. extern XtIntervalId XtAddTimeOut( /* obsolete */
  1098. #if NeedFunctionPrototypes
  1099.     unsigned long     /* interval */,
  1100.     XtTimerCallbackProc /* proc */,
  1101.     XtPointer         /* closure */
  1102. #endif
  1103. );
  1104.  
  1105. extern XtIntervalId XtAppAddTimeOut(
  1106. #if NeedFunctionPrototypes
  1107.     XtAppContext     /* app_context */,
  1108.     unsigned long     /* interval */,
  1109.     XtTimerCallbackProc /* proc */,
  1110.     XtPointer         /* closure */
  1111. #endif
  1112. );
  1113.  
  1114. extern void XtRemoveTimeOut(
  1115. #if NeedFunctionPrototypes
  1116.     XtIntervalId     /* timer */
  1117. #endif
  1118. );
  1119.  
  1120. extern XtInputId XtAddInput( /* obsolete */
  1121. #if NeedFunctionPrototypes
  1122.     int         /* source */,
  1123.     XtPointer         /* condition */,
  1124.     XtInputCallbackProc /* proc */,
  1125.     XtPointer         /* closure */
  1126. #endif
  1127. );
  1128.  
  1129. extern XtInputId XtAppAddInput(
  1130. #if NeedFunctionPrototypes
  1131.     XtAppContext           /* app_context */,
  1132.     int         /* source */,
  1133.     XtPointer         /* condition */,
  1134.     XtInputCallbackProc /* proc */,
  1135.     XtPointer         /* closure */
  1136. #endif
  1137. );
  1138.  
  1139. extern void XtRemoveInput(
  1140. #if NeedFunctionPrototypes
  1141.     XtInputId         /* id */
  1142. #endif
  1143. );
  1144.  
  1145. extern void XtNextEvent( /* obsolete */
  1146. #if NeedFunctionPrototypes
  1147.     XEvent*         /* event */
  1148. #endif
  1149. );
  1150.  
  1151. extern void XtAppNextEvent(
  1152. #if NeedFunctionPrototypes
  1153.     XtAppContext     /* app_context */,
  1154.     XEvent*        /* event_return */
  1155. #endif
  1156. );
  1157.  
  1158. #define XtIMXEvent        1
  1159. #define XtIMTimer        2
  1160. #define XtIMAlternateInput    4
  1161. #define XtIMAll (XtIMXEvent | XtIMTimer | XtIMAlternateInput)
  1162.  
  1163. extern XtInputMask XtPending( /* obsolete */
  1164. #if NeedFunctionPrototypes
  1165.     void
  1166. #endif
  1167. );
  1168.  
  1169. extern XtInputMask XtAppPending(
  1170. #if NeedFunctionPrototypes
  1171.     XtAppContext     /* app_context */
  1172. #endif
  1173. );
  1174.  
  1175. /****************************************************************
  1176.  *
  1177.  * Random utility routines
  1178.  *
  1179.  ****************************************************************/
  1180.  
  1181. #define XtIsRectObj(object)    (_XtCheckSubclassFlag(object, (XtEnum)0x02))
  1182. #define XtIsWidget(object)    (_XtCheckSubclassFlag(object, (XtEnum)0x04))
  1183. #define XtIsComposite(widget)    (_XtCheckSubclassFlag(widget, (XtEnum)0x08))
  1184. #define XtIsConstraint(widget)    (_XtCheckSubclassFlag(widget, (XtEnum)0x10))
  1185. #define XtIsShell(widget)    (_XtCheckSubclassFlag(widget, (XtEnum)0x20))
  1186. #define XtIsOverrideShell(widget) \
  1187.     (_XtIsSubclassOf(widget, (WidgetClass)overrideShellWidgetClass, \
  1188.              (WidgetClass)shellWidgetClass, (XtEnum)0x20))
  1189. #define XtIsWMShell(widget)    (_XtCheckSubclassFlag(widget, (XtEnum)0x40))
  1190. #define XtIsVendorShell(widget)    \
  1191.     (_XtIsSubclassOf(widget, (WidgetClass)vendorShellWidgetClass, \
  1192.              (WidgetClass)wmShellWidgetClass, (XtEnum)0x40))
  1193. #define XtIsTransientShell(widget) \
  1194.     (_XtIsSubclassOf(widget, (WidgetClass)transientShellWidgetClass, \
  1195.              (WidgetClass)wmShellWidgetClass, (XtEnum)0x40))
  1196. #define XtIsTopLevelShell(widget) (_XtCheckSubclassFlag(widget, (XtEnum)0x80))
  1197. #define XtIsApplicationShell(widget) \
  1198.     (_XtIsSubclassOf(widget, (WidgetClass)applicationShellWidgetClass, \
  1199.              (WidgetClass)topLevelShellWidgetClass, (XtEnum)0x80))
  1200.  
  1201. extern void XtRealizeWidget(
  1202. #if NeedFunctionPrototypes
  1203.     Widget         /* widget */
  1204. #endif
  1205. );
  1206.  
  1207. void XtUnrealizeWidget(
  1208. #if NeedFunctionPrototypes
  1209.     Widget         /* widget */
  1210. #endif
  1211. );
  1212.  
  1213. extern void XtDestroyWidget(
  1214. #if NeedFunctionPrototypes
  1215.     Widget         /* widget */
  1216. #endif
  1217. );
  1218.  
  1219. extern void XtSetSensitive(
  1220. #if NeedFunctionPrototypes
  1221.     Widget         /* widget */,
  1222.     _XtBoolean         /* sensitive */
  1223. #endif
  1224. );
  1225.  
  1226. extern void XtSetMappedWhenManaged(
  1227. #if NeedFunctionPrototypes
  1228.     Widget         /* widget */,
  1229.     _XtBoolean         /* mapped_when_managed */
  1230. #endif
  1231. );
  1232.  
  1233. extern Widget XtNameToWidget(
  1234. #if NeedFunctionPrototypes
  1235.     Widget         /* reference */,
  1236.     _Xconst _XtString    /* names */
  1237. #endif
  1238. );
  1239.  
  1240. extern Widget XtWindowToWidget(
  1241. #if NeedFunctionPrototypes
  1242.     Display*        /* display */,
  1243.     Window         /* window */
  1244. #endif
  1245. );
  1246.  
  1247. /***************************************************************
  1248.  *
  1249.  * Arg lists
  1250.  *
  1251.  ****************************************************************/
  1252.  
  1253.  
  1254. #define XtSetArg(arg, n, d) \
  1255.     ((void)( (arg).name = (n), (arg).value = (XtArgVal)(d) ))
  1256.  
  1257. extern ArgList XtMergeArgLists(
  1258. #if NeedFunctionPrototypes
  1259.     ArgList         /* args1 */,
  1260.     Cardinal         /* num_args1 */,
  1261.     ArgList         /* args2 */,
  1262.     Cardinal         /* num_args2 */
  1263. #endif
  1264. );
  1265.  
  1266. /***************************************************************
  1267.  *
  1268.  * Vararg lists
  1269.  *
  1270.  ****************************************************************/
  1271.  
  1272. #define XtVaNestedList  "XtVaNestedList"
  1273. #define XtVaTypedArg    "XtVaTypedArg"
  1274.  
  1275. extern XtVarArgsList XtVaCreateArgsList(
  1276. #if NeedVarargsPrototypes
  1277.     XtPointer        /*unused*/, ...
  1278. #endif
  1279. );
  1280.  
  1281. /*************************************************************
  1282.  *
  1283.  * Information routines
  1284.  *
  1285.  ************************************************************/
  1286.  
  1287. #ifndef _XtIntrinsicP_h
  1288.  
  1289. /* We're not included from the private file, so define these */
  1290.  
  1291. extern Display *XtDisplay(
  1292. #if NeedFunctionPrototypes
  1293.     Widget         /* widget */
  1294. #endif
  1295. );
  1296.  
  1297. extern Display *XtDisplayOfObject(
  1298. #if NeedFunctionPrototypes
  1299.     Widget         /* object */
  1300. #endif
  1301. );
  1302.  
  1303. extern Screen *XtScreen(
  1304. #if NeedFunctionPrototypes
  1305.     Widget         /* widget */
  1306. #endif
  1307. );
  1308.  
  1309. extern Screen *XtScreenOfObject(
  1310. #if NeedFunctionPrototypes
  1311.     Widget         /* object */
  1312. #endif
  1313. );
  1314.  
  1315. extern Window XtWindow(
  1316. #if NeedFunctionPrototypes
  1317.     Widget         /* widget */
  1318. #endif
  1319. );
  1320.  
  1321. extern Window XtWindowOfObject(
  1322. #if NeedFunctionPrototypes
  1323.     Widget         /* object */
  1324. #endif
  1325. );
  1326.  
  1327. extern String XtName(
  1328. #if NeedFunctionPrototypes
  1329.     Widget         /* object */
  1330. #endif
  1331. );
  1332.  
  1333. extern WidgetClass XtSuperclass(
  1334. #if NeedFunctionPrototypes
  1335.     Widget         /* object */
  1336. #endif
  1337. );
  1338.  
  1339. extern WidgetClass XtClass(
  1340. #if NeedFunctionPrototypes
  1341.     Widget         /* object */
  1342. #endif
  1343. );
  1344.  
  1345. extern Widget XtParent(
  1346. #if NeedFunctionPrototypes
  1347.     Widget         /* widget */
  1348. #endif
  1349. );
  1350.  
  1351. #endif /*_XtIntrinsicP_h*/
  1352.  
  1353. #define XtMapWidget(widget)    XMapWindow(XtDisplay(widget), XtWindow(widget))
  1354. #define XtUnmapWidget(widget)    \
  1355.         XUnmapWindow(XtDisplay(widget), XtWindow(widget))
  1356.  
  1357. extern void XtAddCallback(
  1358. #if NeedFunctionPrototypes
  1359.     Widget         /* widget */,
  1360.     _Xconst _XtString     /* callback_name */,
  1361.     XtCallbackProc     /* callback */,
  1362.     XtPointer         /* closure */
  1363. #endif
  1364. );
  1365.  
  1366. extern void XtRemoveCallback(
  1367. #if NeedFunctionPrototypes
  1368.     Widget         /* widget */,
  1369.     _Xconst _XtString     /* callback_name */,
  1370.     XtCallbackProc     /* callback */,
  1371.     XtPointer         /* closure */
  1372. #endif
  1373. );
  1374.  
  1375. extern void XtAddCallbacks(
  1376. #if NeedFunctionPrototypes
  1377.     Widget         /* widget */,
  1378.     _Xconst _XtString    /* callback_name */,
  1379.     XtCallbackList     /* callbacks */
  1380. #endif
  1381. );
  1382.  
  1383. extern void XtRemoveCallbacks(
  1384. #if NeedFunctionPrototypes
  1385.     Widget         /* widget */,
  1386.     _Xconst _XtString     /* callback_name */,
  1387.     XtCallbackList     /* callbacks */
  1388. #endif
  1389. );
  1390.  
  1391. extern void XtRemoveAllCallbacks(
  1392. #if NeedFunctionPrototypes
  1393.     Widget         /* widget */,
  1394.     _Xconst _XtString     /* callback_name */
  1395. #endif
  1396. );
  1397.  
  1398.  
  1399. extern void XtCallCallbacks(
  1400. #if NeedFunctionPrototypes
  1401.     Widget         /* widget */,
  1402.     _Xconst _XtString     /* callback_name */,
  1403.     XtPointer         /* call_data */
  1404. #endif
  1405. );
  1406.  
  1407. extern void XtCallCallbackList(
  1408. #if NeedFunctionPrototypes
  1409.     Widget        /* widget */,
  1410.     XtCallbackList     /* callbacks */,
  1411.     XtPointer         /* call_data */
  1412. #endif
  1413. );
  1414.  
  1415. extern XtCallbackStatus XtHasCallbacks(
  1416. #if NeedFunctionPrototypes
  1417.     Widget         /* widget */,
  1418.     _Xconst _XtString     /* callback_name */
  1419. #endif
  1420. );
  1421.  
  1422. /****************************************************************
  1423.  *
  1424.  * Geometry Management
  1425.  *
  1426.  ****************************************************************/
  1427.  
  1428.  
  1429. extern XtGeometryResult XtMakeGeometryRequest(
  1430. #if NeedFunctionPrototypes
  1431.     Widget         /* widget */,
  1432.     XtWidgetGeometry*    /* request */,
  1433.     XtWidgetGeometry*    /* reply_return */
  1434. #endif
  1435. );
  1436.  
  1437. extern XtGeometryResult XtQueryGeometry(
  1438. #if NeedFunctionPrototypes
  1439.     Widget         /* widget */,
  1440.     XtWidgetGeometry*    /* intended */,
  1441.     XtWidgetGeometry*    /* preferred_return */
  1442. #endif
  1443. );
  1444.  
  1445. extern Widget XtCreatePopupShell(
  1446. #if NeedFunctionPrototypes
  1447.     _Xconst _XtString    /* name */,
  1448.     WidgetClass     /* widgetClass */,
  1449.     Widget         /* parent */,
  1450.     ArgList         /* args */,
  1451.     Cardinal         /* num_args */
  1452. #endif
  1453. );
  1454.  
  1455. extern Widget XtVaCreatePopupShell(
  1456. #if NeedVarargsPrototypes
  1457.     _Xconst _XtString    /* name */,
  1458.     WidgetClass        /* widgetClass */,
  1459.     Widget        /* parent */,
  1460.     ...
  1461. #endif
  1462. );
  1463.  
  1464. extern void XtPopup(
  1465. #if NeedFunctionPrototypes
  1466.     Widget         /* popup_shell */,
  1467.     XtGrabKind         /* grab_kind */
  1468. #endif
  1469. );
  1470.  
  1471. extern void XtPopupSpringLoaded(
  1472. #if NeedFunctionPrototypes
  1473.     Widget         /* popup_shell */
  1474. #endif
  1475. );
  1476.  
  1477. extern void XtCallbackNone(
  1478. #if NeedFunctionPrototypes
  1479.     Widget         /* widget */,
  1480.     XtPointer         /* closure */,
  1481.     XtPointer         /* call_data */
  1482. #endif
  1483. );
  1484.  
  1485. extern void XtCallbackNonexclusive(
  1486. #if NeedFunctionPrototypes
  1487.     Widget         /* widget */,
  1488.     XtPointer         /* closure */,
  1489.     XtPointer         /* call_data */
  1490. #endif
  1491. );
  1492.  
  1493. extern void XtCallbackExclusive(
  1494. #if NeedFunctionPrototypes
  1495.     Widget         /* widget */,
  1496.     XtPointer         /* closure */,
  1497.     XtPointer         /* call_data */
  1498. #endif
  1499. );
  1500.  
  1501. extern void XtPopdown(
  1502. #if NeedFunctionPrototypes
  1503.     Widget         /* popup_shell */
  1504. #endif
  1505. );
  1506.  
  1507. extern void XtCallbackPopdown(
  1508. #if NeedFunctionPrototypes
  1509.     Widget         /* widget */,
  1510.     XtPointer         /* closure */,
  1511.     XtPointer         /* call_data */
  1512. #endif
  1513. );
  1514.  
  1515. extern void XtMenuPopupAction(
  1516. #if NeedFunctionPrototypes
  1517.     Widget         /* widget */,
  1518.     XEvent*        /* event */,
  1519.     String*        /* params */,
  1520.     Cardinal*        /* num_params */
  1521. #endif
  1522. );
  1523.  
  1524. extern Widget XtCreateWidget(
  1525. #if NeedFunctionPrototypes
  1526.     _Xconst _XtString     /* name */,
  1527.     WidgetClass     /* widget_class */,
  1528.     Widget         /* parent */,
  1529.     ArgList         /* args */,
  1530.     Cardinal         /* num_args */
  1531. #endif
  1532. );
  1533.  
  1534. extern Widget XtCreateManagedWidget(
  1535. #if NeedFunctionPrototypes
  1536.     _Xconst _XtString     /* name */,
  1537.     WidgetClass     /* widget_class */,
  1538.     Widget         /* parent */,
  1539.     ArgList         /* args */,
  1540.     Cardinal         /* num_args */
  1541. #endif
  1542. );
  1543.  
  1544. extern Widget XtVaCreateWidget(
  1545. #if NeedVarargsPrototypes
  1546.     _Xconst _XtString    /* name */,
  1547.     WidgetClass        /* widget */,
  1548.     Widget        /* parent */,
  1549.     ...
  1550. #endif
  1551. );
  1552.  
  1553. extern Widget XtVaCreateManagedWidget(
  1554. #if NeedVarargsPrototypes
  1555.     _Xconst _XtString    /* name */,
  1556.     WidgetClass        /* widget_class */,
  1557.     Widget        /* parent */,
  1558.     ...
  1559. #endif
  1560. );
  1561.  
  1562. extern Widget XtCreateApplicationShell( /* obsolete */
  1563. #if NeedFunctionPrototypes
  1564.     _Xconst _XtString     /* name */,
  1565.     WidgetClass     /* widget_class */,
  1566.     ArgList         /* args */,
  1567.     Cardinal         /* num_args */
  1568. #endif
  1569. );
  1570.  
  1571. extern Widget XtAppCreateShell(
  1572. #if NeedFunctionPrototypes
  1573.     _Xconst _XtString    /* application_name */,
  1574.     _Xconst _XtString    /* application_class */,
  1575.     WidgetClass     /* widget_class */,
  1576.     Display*        /* display */,
  1577.     ArgList         /* args */,
  1578.     Cardinal         /* num_args */
  1579. #endif
  1580. );
  1581.  
  1582. extern Widget XtVaAppCreateShell(
  1583. #if NeedVarargsPrototypes
  1584.     _Xconst _XtString    /* application_name */,
  1585.     _Xconst _XtString    /* application_class */,
  1586.     WidgetClass        /* widget_class */,
  1587.     Display*        /* display */,
  1588.     ...
  1589. #endif
  1590. );
  1591.  
  1592. /****************************************************************
  1593.  *
  1594.  * Toolkit initialization
  1595.  *
  1596.  ****************************************************************/
  1597.  
  1598. extern void XtToolkitInitialize(
  1599. #if NeedFunctionPrototypes
  1600.     void
  1601. #endif
  1602. );
  1603.  
  1604. extern XtLanguageProc XtSetLanguageProc(
  1605. #if NeedFunctionPrototypes
  1606.     XtAppContext    /* app_context */,
  1607.     XtLanguageProc    /* proc */,
  1608.     XtPointer        /* client_data */
  1609. #endif
  1610. );
  1611.  
  1612. extern void XtDisplayInitialize(
  1613. #if NeedFunctionPrototypes
  1614.     XtAppContext     /* app_context */,
  1615.     Display*        /* dpy */,
  1616.     _Xconst _XtString    /* application_name */,
  1617.     _Xconst _XtString    /* application_class */,
  1618.     XrmOptionDescRec*     /* options */,
  1619.     Cardinal         /* num_options */,
  1620.     int*        /* argc */,
  1621.     char**        /* argv */
  1622. #endif
  1623. );
  1624.  
  1625. extern Widget XtAppInitialize(
  1626. #if NeedFunctionPrototypes
  1627.     XtAppContext*    /* app_context_return */,
  1628.     _Xconst _XtString    /* application_class */,
  1629.     XrmOptionDescList     /* options */,
  1630.     Cardinal         /* num_options */,
  1631.     int*        /* argc_in_out */,
  1632.     String*        /* argv_in_out */,
  1633.     String*        /* fallback_resources */,
  1634.     ArgList         /* args */,
  1635.     Cardinal         /* num_args */
  1636. #endif
  1637. );
  1638.  
  1639. extern Widget XtVaAppInitialize(
  1640. #if NeedVarargsPrototypes
  1641.     XtAppContext*    /* app_context_return */,
  1642.     _Xconst _XtString    /* application_class */,
  1643.     XrmOptionDescList    /* options */,
  1644.     Cardinal        /* num_options */,
  1645.     int*        /* argc_in_out */,
  1646.     String*        /* argv_in_out */,
  1647.     String*        /* fallback_resources */,
  1648.     ...
  1649. #endif
  1650. );
  1651.  
  1652. extern Widget XtInitialize( /* obsolete */
  1653. #if NeedFunctionPrototypes
  1654.     _Xconst _XtString     /* shell_name */,
  1655.     _Xconst _XtString     /* application_class */,
  1656.     XrmOptionDescRec*     /* options */,
  1657.     Cardinal         /* num_options */,
  1658.     int*        /* argc */,
  1659.     char**        /* argv */
  1660. #endif
  1661. );
  1662.  
  1663. extern Display *XtOpenDisplay(
  1664. #if NeedFunctionPrototypes
  1665.     XtAppContext     /* app_context */,
  1666.     _Xconst _XtString    /* display_string */,
  1667.     _Xconst _XtString    /* application_name */,
  1668.     _Xconst _XtString    /* application_class */,
  1669.     XrmOptionDescRec*    /* options */,
  1670.     Cardinal         /* num_options */,
  1671.     int*        /* argc */,
  1672.     char**        /* argv */
  1673. #endif
  1674. );
  1675.  
  1676. extern XtAppContext XtCreateApplicationContext(
  1677. #if NeedFunctionPrototypes
  1678.     void
  1679. #endif
  1680. );
  1681.  
  1682. extern void XtAppSetFallbackResources(
  1683. #if NeedFunctionPrototypes
  1684.     XtAppContext     /* app_context */,
  1685.     String*        /* specification_list */
  1686. #endif
  1687. );
  1688.  
  1689. extern void XtDestroyApplicationContext(
  1690. #if NeedFunctionPrototypes
  1691.     XtAppContext     /* app_context */
  1692. #endif
  1693. );
  1694.  
  1695. extern void XtInitializeWidgetClass(
  1696. #if NeedFunctionPrototypes
  1697.     WidgetClass     /* widget_class */
  1698. #endif
  1699. );
  1700.  
  1701. extern XtAppContext XtWidgetToApplicationContext(
  1702. #if NeedFunctionPrototypes
  1703.     Widget         /* widget */
  1704. #endif
  1705. );
  1706.  
  1707. extern XtAppContext XtDisplayToApplicationContext(
  1708. #if NeedFunctionPrototypes
  1709.     Display*        /* dpy */
  1710. #endif
  1711. );
  1712.  
  1713. extern XrmDatabase XtDatabase(
  1714. #if NeedFunctionPrototypes
  1715.     Display*        /* dpy */
  1716. #endif
  1717. );
  1718.  
  1719. extern XrmDatabase XtScreenDatabase(
  1720. #if NeedFunctionPrototypes
  1721.     Screen*        /* screen */
  1722. #endif
  1723. );
  1724.  
  1725. extern void XtCloseDisplay(
  1726. #if NeedFunctionPrototypes
  1727.     Display*        /* dpy */
  1728. #endif
  1729. );
  1730.  
  1731. extern void XtGetApplicationResources(
  1732. #if NeedFunctionPrototypes
  1733.     Widget         /* widget */,
  1734.     XtPointer         /* base */,
  1735.     XtResourceList     /* resources */,
  1736.     Cardinal         /* num_resources */,
  1737.     ArgList         /* args */,
  1738.     Cardinal         /* num_args */
  1739. #endif
  1740. );
  1741.  
  1742. extern void XtVaGetApplicationResources(
  1743. #if NeedVarargsPrototypes
  1744.     Widget        /* widget */,
  1745.     XtPointer        /* base */,
  1746.     XtResourceList    /* resources */,
  1747.     Cardinal        /* num_resources */,
  1748.     ...
  1749. #endif
  1750. );
  1751.  
  1752. extern void XtGetSubresources(
  1753. #if NeedFunctionPrototypes
  1754.     Widget         /* widget */,
  1755.     XtPointer         /* base */,
  1756.     _Xconst _XtString     /* name */,
  1757.     _Xconst _XtString     /* class */,
  1758.     XtResourceList     /* resources */,
  1759.     Cardinal         /* num_resources */,
  1760.     ArgList         /* args */,
  1761.     Cardinal         /* num_args */
  1762. #endif
  1763. );
  1764.  
  1765. extern void XtVaGetSubresources(
  1766. #if NeedVarargsPrototypes
  1767.     Widget        /* widget */,
  1768.     XtPointer        /* base */,
  1769.     _Xconst _XtString    /* name */,
  1770.     _Xconst _XtString    /* class */,
  1771.     XtResourceList    /* resources */,
  1772.     Cardinal        /* num_resources */,
  1773.     ...
  1774. #endif
  1775. );
  1776.  
  1777. extern void XtSetValues(
  1778. #if NeedFunctionPrototypes
  1779.     Widget         /* widget */,
  1780.     ArgList         /* args */,
  1781.     Cardinal         /* num_args */
  1782. #endif
  1783. );
  1784.  
  1785. extern void XtVaSetValues(
  1786. #if NeedVarargsPrototypes
  1787.     Widget        /* widget */,
  1788.     ...
  1789. #endif
  1790. );
  1791.  
  1792. extern void XtGetValues(
  1793. #if NeedFunctionPrototypes
  1794.     Widget         /* widget */,
  1795.     ArgList         /* args */,
  1796.     Cardinal         /* num_args */
  1797. #endif
  1798. );
  1799.  
  1800. extern void XtVaGetValues(
  1801. #if NeedVarargsPrototypes
  1802.     Widget        /* widget */,
  1803.     ...
  1804. #endif
  1805. );
  1806.  
  1807. extern void XtSetSubvalues(
  1808. #if NeedFunctionPrototypes
  1809.     XtPointer         /* base */,
  1810.     XtResourceList     /* resources */,
  1811.     Cardinal         /* num_resources */,
  1812.     ArgList         /* args */,
  1813.     Cardinal         /* num_args */
  1814. #endif
  1815. );
  1816.  
  1817. extern void XtVaSetSubvalues(
  1818. #if NeedVarargsPrototypes
  1819.     XtPointer        /* base */,
  1820.     XtResourceList    /* resources */,
  1821.     Cardinal        /* num_resources */,
  1822.     ...
  1823. #endif
  1824. );
  1825.  
  1826. extern void XtGetSubvalues(
  1827. #if NeedFunctionPrototypes
  1828.     XtPointer         /* base */,
  1829.     XtResourceList     /* resources */,
  1830.     Cardinal         /* num_resources */,
  1831.     ArgList         /* args */,
  1832.     Cardinal         /* num_args */
  1833. #endif
  1834. );
  1835.  
  1836. extern void XtVaGetSubvalues(
  1837. #if NeedVarargsPrototypes
  1838.     XtPointer        /* base */,
  1839.     XtResourceList    /* resources */,
  1840.     Cardinal        /* num_resources */,
  1841.     ...
  1842. #endif
  1843. );
  1844.  
  1845. extern void XtGetResourceList(
  1846. #if NeedFunctionPrototypes
  1847.     WidgetClass     /* widget_class */,
  1848.     XtResourceList*    /* resources_return */,
  1849.     Cardinal*        /* num_resources_return */
  1850. #endif
  1851. );
  1852.  
  1853. extern void XtGetConstraintResourceList(
  1854. #if NeedFunctionPrototypes
  1855.     WidgetClass     /* widget_class */,
  1856.     XtResourceList*    /* resources_return */,
  1857.     Cardinal*        /* num_resources_return */
  1858. #endif
  1859. );
  1860.  
  1861. #define XtUnspecifiedPixmap    ((Pixmap)2)
  1862. #define XtUnspecifiedShellInt    (-1)
  1863. #define XtUnspecifiedWindow    ((Window)2)
  1864. #define XtUnspecifiedWindowGroup ((Window)3)
  1865. #define XtDefaultForeground    "XtDefaultForeground"
  1866. #define XtDefaultBackground    "XtDefaultBackground"
  1867. #define XtDefaultFont        "XtDefaultFont"
  1868. #define XtDefaultFontSet    "XtDefaultFontSet"
  1869.  
  1870. #if defined(CRAY) || defined(__arm)
  1871. #if __STDC__
  1872. #define XtOffset(p_type,field) _Offsetof(p_type,field)
  1873. #else
  1874. #ifdef CRAY2
  1875. #define XtOffset(p_type,field) \
  1876.     (sizeof(int)*((unsigned int)&(((p_type)NULL)->field)))
  1877.  
  1878. #else    /* !CRAY2 */
  1879.  
  1880. #define XtOffset(p_type,field) ((unsigned int)&(((p_type)NULL)->field))
  1881.  
  1882. #endif    /* !CRAY2 */
  1883. #endif  /* __STDC__ */
  1884. #else    /* ! (CRAY || __arm) */
  1885.  
  1886. #define XtOffset(p_type,field) \
  1887.     ((Cardinal) (((char *) (&(((p_type)NULL)->field))) - ((char *) NULL)))
  1888.  
  1889. #endif /* !CRAY */
  1890.  
  1891. #ifdef offsetof
  1892. #define XtOffsetOf(s_type,field) offsetof(s_type,field)
  1893. #else
  1894. #define XtOffsetOf(s_type,field) XtOffset(s_type*,field)
  1895. #endif
  1896.  
  1897. /*************************************************************
  1898.  *
  1899.  * Error Handling
  1900.  *
  1901.  ************************************************************/
  1902.  
  1903. extern XtErrorMsgHandler XtAppSetErrorMsgHandler(
  1904. #if NeedFunctionPrototypes
  1905.     XtAppContext     /* app_context */,
  1906.     XtErrorMsgHandler     /* handler */
  1907. #endif
  1908. );
  1909.  
  1910. extern void XtSetErrorMsgHandler( /* obsolete */
  1911. #if NeedFunctionPrototypes
  1912.     XtErrorMsgHandler     /* handler */
  1913. #endif
  1914. );
  1915.  
  1916. extern XtErrorMsgHandler XtAppSetWarningMsgHandler(
  1917. #if NeedFunctionPrototypes
  1918.     XtAppContext     /* app_context */,
  1919.     XtErrorMsgHandler     /* handler */
  1920. #endif
  1921. );
  1922.  
  1923. extern void XtSetWarningMsgHandler( /* obsolete */
  1924. #if NeedFunctionPrototypes
  1925.     XtErrorMsgHandler     /* handler */
  1926. #endif
  1927. );
  1928.  
  1929. extern void XtAppErrorMsg(
  1930. #if NeedFunctionPrototypes
  1931.     XtAppContext     /* app_context */,
  1932.     _Xconst _XtString     /* name */,
  1933.     _Xconst _XtString    /* type */,
  1934.     _Xconst _XtString    /* class */,
  1935.     _Xconst _XtString    /* default */,
  1936.     String*        /* params */,
  1937.     Cardinal*        /* num_params */
  1938. #endif
  1939. );
  1940.  
  1941. extern void XtErrorMsg( /* obsolete */
  1942. #if NeedFunctionPrototypes
  1943.     _Xconst _XtString     /* name */,
  1944.     _Xconst _XtString    /* type */,
  1945.     _Xconst _XtString    /* class */,
  1946.     _Xconst _XtString    /* default */,
  1947.     String*        /* params */,
  1948.     Cardinal*        /* num_params */
  1949. #endif
  1950. );
  1951.  
  1952. extern void XtAppWarningMsg(
  1953. #if NeedFunctionPrototypes
  1954.     XtAppContext     /* app_context */,
  1955.     _Xconst _XtString     /* name */,
  1956.     _Xconst _XtString     /* type */,
  1957.     _Xconst _XtString     /* class */,
  1958.     _Xconst _XtString     /* default */,
  1959.     String*        /* params */,
  1960.     Cardinal*        /* num_params */
  1961. #endif
  1962. );
  1963.  
  1964. extern void XtWarningMsg( /* obsolete */
  1965. #if NeedFunctionPrototypes
  1966.     _Xconst _XtString    /* name */,
  1967.     _Xconst _XtString    /* type */,
  1968.     _Xconst _XtString    /* class */,
  1969.     _Xconst _XtString    /* default */,
  1970.     String*        /* params */,
  1971.     Cardinal*        /* num_params */
  1972. #endif
  1973. );
  1974.  
  1975. extern XtErrorHandler XtAppSetErrorHandler(
  1976. #if NeedFunctionPrototypes
  1977.     XtAppContext     /* app_context */,
  1978.     XtErrorHandler     /* handler */
  1979. #endif
  1980. );
  1981.  
  1982. extern void XtSetErrorHandler( /* obsolete */
  1983. #if NeedFunctionPrototypes
  1984.     XtErrorHandler     /* handler */
  1985. #endif
  1986. );
  1987.  
  1988. extern XtErrorHandler XtAppSetWarningHandler(
  1989. #if NeedFunctionPrototypes
  1990.     XtAppContext     /* app_context */,
  1991.     XtErrorHandler     /* handler */
  1992. #endif
  1993. );
  1994.  
  1995. extern void XtSetWarningHandler( /* obsolete */
  1996. #if NeedFunctionPrototypes
  1997.     XtErrorHandler     /* handler */
  1998. #endif
  1999. );
  2000.  
  2001. extern void XtAppError(
  2002. #if NeedFunctionPrototypes
  2003.     XtAppContext     /* app_context */,
  2004.     _Xconst _XtString    /* message */
  2005. #endif
  2006. );
  2007.  
  2008. extern void XtError( /* obsolete */
  2009. #if NeedFunctionPrototypes
  2010.     _Xconst _XtString    /* message */
  2011. #endif
  2012. );
  2013.  
  2014. extern void XtAppWarning(
  2015. #if NeedFunctionPrototypes
  2016.     XtAppContext     /* app_context */,
  2017.     _Xconst _XtString    /* message */
  2018. #endif
  2019. );
  2020.  
  2021. extern void XtWarning( /* obsolete */
  2022. #if NeedFunctionPrototypes
  2023.     _XtString    /* message */
  2024. #endif
  2025. );
  2026.  
  2027. extern XrmDatabase *XtAppGetErrorDatabase(
  2028. #if NeedFunctionPrototypes
  2029.     XtAppContext     /* app_context */
  2030. #endif
  2031. );
  2032.  
  2033. extern XrmDatabase *XtGetErrorDatabase( /* obsolete */
  2034. #if NeedFunctionPrototypes
  2035.     void
  2036. #endif
  2037. );
  2038.  
  2039. extern void XtAppGetErrorDatabaseText(
  2040. #if NeedFunctionPrototypes
  2041.     XtAppContext     /* app_context */,
  2042.     _Xconst _XtString    /* name */,
  2043.     _Xconst _XtString    /* type */,
  2044.     _Xconst _XtString    /* class */,
  2045.     _Xconst _XtString     /* default */,
  2046.     String         /* buffer_return */,
  2047.     int         /* nbytes */,
  2048.     XrmDatabase     /* database */
  2049. #endif
  2050. );
  2051.  
  2052. extern void XtGetErrorDatabaseText( /* obsolete */
  2053. #if NeedFunctionPrototypes
  2054.     _Xconst _XtString    /* name */,
  2055.     _Xconst _XtString    /* type */,
  2056.     _Xconst _XtString    /* class */,
  2057.     _Xconst _XtString     /* default */,
  2058.     String         /* buffer_return */,
  2059.     int         /* nbytes */
  2060. #endif
  2061. );
  2062.  
  2063. /****************************************************************
  2064.  *
  2065.  * Memory Management
  2066.  *
  2067.  ****************************************************************/
  2068.  
  2069. extern char *XtMalloc(
  2070. #if NeedFunctionPrototypes
  2071.     Cardinal         /* size */
  2072. #endif
  2073. );
  2074.  
  2075. extern char *XtCalloc(
  2076. #if NeedFunctionPrototypes
  2077.     Cardinal        /* num */,
  2078.     Cardinal         /* size */
  2079. #endif
  2080. );
  2081.  
  2082. extern char *XtRealloc(
  2083. #if NeedFunctionPrototypes
  2084.     char*         /* ptr */,
  2085.     Cardinal         /* num */
  2086. #endif
  2087. );
  2088.  
  2089. extern void XtFree(
  2090. #if NeedFunctionPrototypes
  2091.     char*        /* ptr */
  2092. #endif
  2093. );
  2094.  
  2095. #ifdef XTTRACEMEMORY
  2096.  
  2097. extern char *_XtMalloc( /* implementation-private */
  2098. #if NeedFunctionPrototypes
  2099.     Cardinal    /* size */,
  2100.     char *    /* file */,
  2101.     int            /* line */
  2102. #endif               
  2103. );
  2104.  
  2105. extern char *_XtRealloc( /* implementation-private */
  2106. #if NeedFunctionPrototypes
  2107.     char *    /* ptr */,
  2108.     Cardinal    /* size */,
  2109.     char *    /* file */,
  2110.     int        /* line */
  2111. #endif
  2112. );
  2113.  
  2114. extern char *_XtCalloc( /* implementation-private */
  2115. #if NeedFunctionPrototypes
  2116.     Cardinal    /* num */,
  2117.     Cardinal     /* size */,
  2118.     char *    /* file */,
  2119.     int        /* line */
  2120. #endif
  2121. );
  2122.  
  2123. extern void _XtFree( /* implementation-private */
  2124. #if NeedFunctionPrototypes
  2125.     char *    /* ptr */
  2126. #endif
  2127. );
  2128.  
  2129. #define XtMalloc(size) _XtMalloc(size, __FILE__, __LINE__)
  2130. #define XtRealloc(ptr,size) _XtRealloc(ptr, size, __FILE__, __LINE__)
  2131. #define XtCalloc(num,size) _XtCalloc(num, size, __FILE__, __LINE__)
  2132. #define XtFree(ptr) _XtFree(ptr)
  2133.  
  2134. #endif /* ifdef XTTRACEMEMORY */
  2135.  
  2136. #define XtNew(type) ((type *) XtMalloc((unsigned) sizeof(type)))
  2137. #define XtNewString(str) \
  2138.     ((str) != NULL ? (strcpy(XtMalloc((unsigned)strlen(str) + 1), str)) : NULL)
  2139.  
  2140. /*************************************************************
  2141.  *
  2142.  *  Work procs
  2143.  *
  2144.  **************************************************************/
  2145.  
  2146. extern XtWorkProcId XtAddWorkProc( /* obsolete */
  2147. #if NeedFunctionPrototypes
  2148.     XtWorkProc         /* proc */,
  2149.     XtPointer         /* closure */
  2150. #endif
  2151. );
  2152.  
  2153. extern XtWorkProcId XtAppAddWorkProc(
  2154. #if NeedFunctionPrototypes
  2155.     XtAppContext     /* app_context */,
  2156.     XtWorkProc         /* proc */,
  2157.     XtPointer         /* closure */
  2158. #endif
  2159. );
  2160.  
  2161. extern void  XtRemoveWorkProc(
  2162. #if NeedFunctionPrototypes
  2163.     XtWorkProcId     /* id */
  2164. #endif
  2165. );
  2166.  
  2167.  
  2168. /****************************************************************
  2169.  *
  2170.  * Graphic Context Management
  2171.  *****************************************************************/
  2172.  
  2173. extern GC XtGetGC(
  2174. #if NeedFunctionPrototypes
  2175.     Widget         /* widget */,
  2176.     XtGCMask         /* valueMask */,
  2177.     XGCValues*         /* values */
  2178. #endif
  2179. );
  2180.  
  2181. extern GC XtAllocateGC(
  2182. #if NeedFunctionPrototypes
  2183.     Widget         /* widget */,
  2184.     Cardinal        /* depth */,
  2185.     XtGCMask         /* valueMask */,
  2186.     XGCValues*         /* values */,
  2187.     XtGCMask        /* dynamicMask */,
  2188.     XtGCMask        /* unusedMask */
  2189. #endif
  2190. );
  2191.  
  2192. /* This implementation of XtDestroyGC differs from the formal specification
  2193.  * for historic backwards compatibility reasons.  As other implementations
  2194.  * may conform to the spec, use of XtReleaseGC is strongly encouraged.
  2195.  */
  2196. extern void XtDestroyGC( /* obsolete */
  2197. #if NeedFunctionPrototypes
  2198.     GC             /* gc */
  2199. #endif
  2200. );
  2201.  
  2202. extern void XtReleaseGC(
  2203. #if NeedFunctionPrototypes
  2204.     Widget         /* object */,
  2205.     GC             /* gc */
  2206. #endif
  2207. );
  2208.  
  2209.  
  2210.  
  2211. extern void XtAppReleaseCacheRefs(
  2212. #if NeedFunctionPrototypes
  2213.     XtAppContext    /* app_context */,
  2214.     XtCacheRef*        /* cache_ref */
  2215. #endif
  2216. );
  2217.  
  2218. extern void XtCallbackReleaseCacheRef(
  2219. #if NeedFunctionPrototypes
  2220.     Widget         /* widget */,
  2221.     XtPointer         /* closure */,    /* XtCacheRef */
  2222.     XtPointer         /* call_data */
  2223. #endif
  2224. );
  2225.  
  2226. extern void XtCallbackReleaseCacheRefList(
  2227. #if NeedFunctionPrototypes
  2228.     Widget         /* widget */,
  2229.     XtPointer         /* closure */,    /* XtCacheRef* */
  2230.     XtPointer         /* call_data */
  2231. #endif
  2232. );
  2233.  
  2234. extern void XtSetWMColormapWindows(
  2235. #if NeedFunctionPrototypes
  2236.     Widget         /* widget */,
  2237.     Widget*        /* list */,
  2238.     Cardinal        /* count */
  2239. #endif
  2240. );
  2241.  
  2242. extern String XtFindFile(
  2243. #if NeedFunctionPrototypes
  2244.     _Xconst _XtString    /* path */,
  2245.     Substitution    /* substitutions */,
  2246.     Cardinal         /* num_substitutions */,
  2247.     XtFilePredicate    /* predicate */
  2248. #endif
  2249. );
  2250.  
  2251. extern String XtResolvePathname(
  2252. #if NeedFunctionPrototypes
  2253.     Display*        /* dpy */,
  2254.     _Xconst _XtString    /* type */,
  2255.     _Xconst _XtString    /* filename */,
  2256.     _Xconst _XtString    /* suffix */,
  2257.     _Xconst _XtString    /* path */,
  2258.     Substitution    /* substitutions */,
  2259.     Cardinal        /* num_substitutions */,
  2260.     XtFilePredicate     /* predicate */
  2261. #endif
  2262. );
  2263.  
  2264. /****************************************************************
  2265.  *
  2266.  * Selections
  2267.  *
  2268.  *****************************************************************/
  2269.  
  2270. #define XT_CONVERT_FAIL (Atom)0x80000001
  2271.     
  2272. extern void XtDisownSelection(
  2273. #if NeedFunctionPrototypes
  2274.     Widget         /* widget */,
  2275.     Atom         /* selection */,
  2276.     Time         /* time */
  2277. #endif
  2278. );
  2279.  
  2280. extern void XtGetSelectionValue(
  2281. #if NeedFunctionPrototypes
  2282.     Widget         /* widget */,
  2283.     Atom         /* selection */,
  2284.     Atom         /* target */,
  2285.     XtSelectionCallbackProc /* callback */,
  2286.     XtPointer         /* closure */,
  2287.     Time         /* time */
  2288. #endif
  2289. );
  2290.  
  2291. extern void XtGetSelectionValues(
  2292. #if NeedFunctionPrototypes
  2293.     Widget         /* widget */,
  2294.     Atom         /* selection */,
  2295.     Atom*        /* targets */,
  2296.     int         /* count */,
  2297.     XtSelectionCallbackProc /* callback */,
  2298.     XtPointer*        /* closures */,
  2299.     Time         /* time */
  2300. #endif
  2301. );
  2302.  
  2303. extern void XtAppSetSelectionTimeout(
  2304. #if NeedFunctionPrototypes
  2305.     XtAppContext     /* app_context */,
  2306.     unsigned long     /* timeout */
  2307. #endif
  2308. );
  2309.  
  2310. extern void XtSetSelectionTimeout( /* obsolete */
  2311. #if NeedFunctionPrototypes
  2312.     unsigned long     /* timeout */
  2313. #endif
  2314. );
  2315.  
  2316. extern unsigned long XtAppGetSelectionTimeout(
  2317. #if NeedFunctionPrototypes
  2318.     XtAppContext     /* app_context */
  2319. #endif
  2320. );
  2321.  
  2322. extern unsigned long XtGetSelectionTimeout( /* obsolete */
  2323. #if NeedFunctionPrototypes
  2324.     void
  2325. #endif
  2326. );
  2327.  
  2328. extern XSelectionRequestEvent *XtGetSelectionRequest(
  2329. #if NeedFunctionPrototypes
  2330.     Widget         /* widget */,
  2331.     Atom         /* selection */,
  2332.     XtRequestId     /* request_id */
  2333. #endif
  2334. );
  2335.  
  2336. extern void XtGetSelectionValueIncremental(
  2337. #if NeedFunctionPrototypes
  2338.     Widget         /* widget */,
  2339.     Atom         /* selection */,
  2340.     Atom         /* target */,
  2341.     XtSelectionCallbackProc /* selection_callback */,
  2342.     XtPointer         /* client_data */,
  2343.     Time         /* time */
  2344. #endif
  2345. );
  2346.  
  2347. extern void XtGetSelectionValuesIncremental(
  2348. #if NeedFunctionPrototypes
  2349.     Widget         /* widget */,
  2350.     Atom         /* selection */,
  2351.     Atom*        /* targets */,
  2352.     int         /* count */,
  2353.     XtSelectionCallbackProc /* callback */,
  2354.     XtPointer*        /* client_data */,
  2355.     Time         /* time */
  2356. #endif
  2357. );
  2358.  
  2359. extern void XtGrabKey(
  2360. #if NeedFunctionPrototypes
  2361.     Widget         /* widget */,
  2362.     _XtKeyCode         /* keycode */,
  2363.     Modifiers         /* modifiers */,
  2364.     _XtBoolean         /* owner_events */,
  2365.     int         /* pointer_mode */,
  2366.     int         /* keyboard_mode */
  2367. #endif
  2368. );
  2369.  
  2370. extern void XtUngrabKey(
  2371. #if NeedFunctionPrototypes
  2372.     Widget         /* widget */,
  2373.     _XtKeyCode         /* keycode */,
  2374.     Modifiers         /* modifiers */
  2375. #endif
  2376. );
  2377.  
  2378. extern int XtGrabKeyboard(
  2379. #if NeedFunctionPrototypes
  2380.     Widget         /* widget */,
  2381.     _XtBoolean         /* owner_events */,
  2382.     int         /* pointer_mode */,
  2383.     int         /* keyboard_mode */,
  2384.     Time         /* time */
  2385. #endif
  2386. );
  2387.  
  2388. extern void XtUngrabKeyboard(
  2389. #if NeedFunctionPrototypes
  2390.     Widget         /* widget */,
  2391.     Time         /* time */
  2392. #endif
  2393. );
  2394.  
  2395. extern void XtGrabButton(
  2396. #if NeedFunctionPrototypes
  2397.     Widget         /* widget */,
  2398.     int         /* button */,
  2399.     Modifiers         /* modifiers */,
  2400.     _XtBoolean         /* owner_events */,
  2401.     unsigned int    /* event_mask */,
  2402.     int         /* pointer_mode */,
  2403.     int         /* keyboard_mode */,
  2404.     Window         /* confine_to */,
  2405.     Cursor         /* cursor */
  2406. #endif
  2407. );
  2408.  
  2409. extern void XtUngrabButton(
  2410. #if NeedFunctionPrototypes
  2411.     Widget         /* widget */,
  2412.     unsigned int    /* button */,
  2413.     Modifiers         /* modifiers */
  2414. #endif
  2415. );
  2416.  
  2417. extern int XtGrabPointer(
  2418. #if NeedFunctionPrototypes
  2419.     Widget         /* widget */,
  2420.     _XtBoolean         /* owner_events */,
  2421.     unsigned int    /* event_mask */,
  2422.     int         /* pointer_mode */,
  2423.     int         /* keyboard_mode */,
  2424.     Window         /* confine_to */,
  2425.     Cursor         /* cursor */,
  2426.     Time         /* time */
  2427. #endif
  2428. );
  2429.  
  2430. extern void XtUngrabPointer(
  2431. #if NeedFunctionPrototypes
  2432.     Widget         /* widget */,
  2433.     Time         /* time */
  2434. #endif
  2435. );
  2436.  
  2437. extern void XtGetApplicationNameAndClass(
  2438. #if NeedFunctionPrototypes
  2439.     Display*        /* dpy */,
  2440.     String*        /* name_return */,
  2441.     String*        /* class_return */
  2442. #endif
  2443. );
  2444.  
  2445.  
  2446. /*
  2447.  *    Predefined Resource Converters
  2448.  */
  2449.  
  2450.  
  2451. /* String converters */
  2452.  
  2453. extern Boolean XtCvtStringToAcceleratorTable(
  2454. #if NeedFunctionPrototypes
  2455.     Display*    /* dpy */,
  2456.     XrmValuePtr /* args */,    /* none */
  2457.     Cardinal*   /* num_args */,    
  2458.     XrmValuePtr    /* fromVal */,
  2459.     XrmValuePtr    /* toVal */,
  2460.     XtPointer*    /* closure_ret */
  2461. #endif
  2462. );
  2463.  
  2464. extern Boolean XtCvtStringToAtom(
  2465. #if NeedFunctionPrototypes
  2466.     Display*    /* dpy */,
  2467.     XrmValuePtr /* args */,    /* Display */
  2468.     Cardinal*   /* num_args */,    
  2469.     XrmValuePtr    /* fromVal */,
  2470.     XrmValuePtr    /* toVal */,
  2471.     XtPointer*    /* closure_ret */
  2472. #endif
  2473. );
  2474.  
  2475. extern Boolean XtCvtStringToBoolean(
  2476. #if NeedFunctionPrototypes
  2477.     Display*    /* dpy */,
  2478.     XrmValuePtr /* args */,    /* none */
  2479.     Cardinal*   /* num_args */,    
  2480.     XrmValuePtr    /* fromVal */,
  2481.     XrmValuePtr    /* toVal */,
  2482.     XtPointer*    /* closure_ret */
  2483. #endif
  2484. );
  2485.  
  2486. extern Boolean XtCvtStringToBool(
  2487. #if NeedFunctionPrototypes
  2488.     Display*    /* dpy */,
  2489.     XrmValuePtr /* args */,    /* none */
  2490.     Cardinal*   /* num_args */,    
  2491.     XrmValuePtr    /* fromVal */,
  2492.     XrmValuePtr    /* toVal */,
  2493.     XtPointer*    /* closure_ret */
  2494. #endif
  2495. );
  2496.  
  2497. extern Boolean XtCvtStringToCursor(
  2498. #if NeedFunctionPrototypes
  2499.     Display*    /* dpy */,
  2500.     XrmValuePtr /* args */,    /* Display */
  2501.     Cardinal*   /* num_args */,    
  2502.     XrmValuePtr    /* fromVal */,
  2503.     XrmValuePtr    /* toVal */,
  2504.     XtPointer*    /* closure_ret */
  2505. #endif
  2506. );
  2507.  
  2508. extern Boolean XtCvtStringToDimension(
  2509. #if NeedFunctionPrototypes
  2510.     Display*    /* dpy */,
  2511.     XrmValuePtr /* args */,    /* none */
  2512.     Cardinal*   /* num_args */,    
  2513.     XrmValuePtr    /* fromVal */,
  2514.     XrmValuePtr    /* toVal */,
  2515.     XtPointer*    /* closure_ret */
  2516. #endif
  2517. );
  2518.  
  2519. extern Boolean XtCvtStringToDisplay(
  2520. #if NeedFunctionPrototypes
  2521.     Display*    /* dpy */,
  2522.     XrmValuePtr /* args */,    /* none */
  2523.     Cardinal*   /* num_args */,    
  2524.     XrmValuePtr    /* fromVal */,
  2525.     XrmValuePtr    /* toVal */,
  2526.     XtPointer*    /* closure_ret */
  2527. #endif
  2528. );
  2529.  
  2530. extern Boolean XtCvtStringToFile(
  2531. #if NeedFunctionPrototypes
  2532.     Display*    /* dpy */,
  2533.     XrmValuePtr /* args */,    /* none */
  2534.     Cardinal*   /* num_args */,    
  2535.     XrmValuePtr    /* fromVal */,
  2536.     XrmValuePtr    /* toVal */,
  2537.     XtPointer*    /* closure_ret */
  2538. #endif
  2539. );
  2540.  
  2541. extern Boolean XtCvtStringToFloat(
  2542. #if NeedFunctionPrototypes
  2543.     Display*    /* dpy */,
  2544.     XrmValuePtr /* args */,    /* none */
  2545.     Cardinal*   /* num_args */,    
  2546.     XrmValuePtr    /* fromVal */,
  2547.     XrmValuePtr    /* toVal */,
  2548.     XtPointer*    /* closure_ret */
  2549. #endif
  2550. );
  2551.  
  2552. extern Boolean XtCvtStringToFont(
  2553. #if NeedFunctionPrototypes
  2554.     Display*    /* dpy */,
  2555.     XrmValuePtr /* args */,    /* Display */
  2556.     Cardinal*   /* num_args */,    
  2557.     XrmValuePtr    /* fromVal */,
  2558.     XrmValuePtr    /* toVal */,
  2559.     XtPointer*    /* closure_ret */
  2560. #endif
  2561. );
  2562.  
  2563. extern Boolean XtCvtStringToFontSet(
  2564. #if NeedFunctionPrototypes
  2565.     Display*    /* dpy */,
  2566.     XrmValuePtr /* args */,    /* Display, locale */
  2567.     Cardinal*   /* num_args */,    
  2568.     XrmValuePtr    /* fromVal */,
  2569.     XrmValuePtr    /* toVal */,
  2570.     XtPointer*    /* closure_ret */
  2571. #endif
  2572. );
  2573.  
  2574. extern Boolean XtCvtStringToFontStruct(
  2575. #if NeedFunctionPrototypes
  2576.     Display*    /* dpy */,
  2577.     XrmValuePtr /* args */,    /* Display */
  2578.     Cardinal*   /* num_args */,    
  2579.     XrmValuePtr    /* fromVal */,
  2580.     XrmValuePtr    /* toVal */,
  2581.     XtPointer*    /* closure_ret */
  2582. #endif
  2583. );
  2584.  
  2585. extern Boolean XtCvtStringToInt(
  2586. #if NeedFunctionPrototypes
  2587.     Display*    /* dpy */,
  2588.     XrmValuePtr /* args */,    /* none */
  2589.     Cardinal*   /* num_args */,    
  2590.     XrmValuePtr    /* fromVal */,
  2591.     XrmValuePtr    /* toVal */,
  2592.     XtPointer*    /* closure_ret */
  2593. #endif
  2594. );
  2595.  
  2596. extern Boolean XtCvtStringToInitialState(
  2597. #if NeedFunctionPrototypes
  2598.     Display*    /* dpy */,
  2599.     XrmValuePtr /* args */,    /* none */
  2600.     Cardinal*   /* num_args */,    
  2601.     XrmValuePtr    /* fromVal */,
  2602.     XrmValuePtr    /* toVal */,
  2603.     XtPointer*    /* closure_ret */
  2604. #endif
  2605. );
  2606.  
  2607. extern Boolean XtCvtStringToPixel(
  2608. #if NeedFunctionPrototypes
  2609.     Display*    /* dpy */,
  2610.     XrmValuePtr /* args */,    /* Screen, Colormap */
  2611.     Cardinal*   /* num_args */,    
  2612.     XrmValuePtr    /* fromVal */,
  2613.     XrmValuePtr    /* toVal */,
  2614.     XtPointer*    /* closure_ret */
  2615. #endif
  2616. );
  2617.  
  2618. #define XtCvtStringToPosition XtCvtStringToShort
  2619.  
  2620. extern Boolean XtCvtStringToShort(
  2621. #if NeedFunctionPrototypes
  2622.     Display*    /* dpy */,
  2623.     XrmValuePtr /* args */,    /* none */
  2624.     Cardinal*   /* num_args */,    
  2625.     XrmValuePtr    /* fromVal */,
  2626.     XrmValuePtr    /* toVal */,
  2627.     XtPointer*    /* closure_ret */
  2628. #endif
  2629. );
  2630.  
  2631. extern Boolean XtCvtStringToTranslationTable(
  2632. #if NeedFunctionPrototypes
  2633.     Display*    /* dpy */,
  2634.     XrmValuePtr /* args */,    /* none */
  2635.     Cardinal*   /* num_args */,    
  2636.     XrmValuePtr    /* fromVal */,
  2637.     XrmValuePtr    /* toVal */,
  2638.     XtPointer*    /* closure_ret */
  2639. #endif
  2640. );
  2641.  
  2642. extern Boolean XtCvtStringToUnsignedChar(
  2643. #if NeedFunctionPrototypes
  2644.     Display*    /* dpy */,
  2645.     XrmValuePtr /* args */,    /* none */
  2646.     Cardinal*   /* num_args */,    
  2647.     XrmValuePtr    /* fromVal */,
  2648.     XrmValuePtr    /* toVal */,
  2649.     XtPointer*    /* closure_ret */
  2650. #endif
  2651. );
  2652.  
  2653. extern Boolean XtCvtStringToVisual(
  2654. #if NeedFunctionPrototypes
  2655.     Display*    /* dpy */,
  2656.     XrmValuePtr /* args */,    /* Screen, depth */
  2657.     Cardinal*   /* num_args */,    
  2658.     XrmValuePtr    /* fromVal */,
  2659.     XrmValuePtr    /* toVal */,
  2660.     XtPointer*    /* closure_ret */
  2661. #endif
  2662. );
  2663.  
  2664. /* int converters */
  2665.  
  2666. extern Boolean XtCvtIntToBoolean(
  2667. #if NeedFunctionPrototypes
  2668.     Display*    /* dpy */,
  2669.     XrmValuePtr /* args */,    /* none */
  2670.     Cardinal*   /* num_args */,    
  2671.     XrmValuePtr    /* fromVal */,
  2672.     XrmValuePtr    /* toVal */,
  2673.     XtPointer*    /* closure_ret */
  2674. #endif
  2675. );
  2676.  
  2677. extern Boolean XtCvtIntToBool(
  2678. #if NeedFunctionPrototypes
  2679.     Display*    /* dpy */,
  2680.     XrmValuePtr /* args */,    /* none */
  2681.     Cardinal*   /* num_args */,    
  2682.     XrmValuePtr    /* fromVal */,
  2683.     XrmValuePtr    /* toVal */,
  2684.     XtPointer*    /* closure_ret */
  2685. #endif
  2686. );
  2687.  
  2688. extern Boolean XtCvtIntToColor(
  2689. #if NeedFunctionPrototypes
  2690.     Display*    /* dpy */,
  2691.     XrmValuePtr /* args */,    /* Screen, Colormap */
  2692.     Cardinal*   /* num_args */,    
  2693.     XrmValuePtr    /* fromVal */,
  2694.     XrmValuePtr    /* toVal */,
  2695.     XtPointer*    /* closure_ret */
  2696. #endif
  2697. );
  2698.  
  2699. #define XtCvtIntToDimension XtCvtIntToShort
  2700.  
  2701. extern Boolean XtCvtIntToFloat(
  2702. #if NeedFunctionPrototypes
  2703.     Display*    /* dpy */,
  2704.     XrmValuePtr /* args */,    /* none */
  2705.     Cardinal*   /* num_args */,    
  2706.     XrmValuePtr    /* fromVal */,
  2707.     XrmValuePtr    /* toVal */,
  2708.     XtPointer*    /* closure_ret */
  2709. #endif
  2710. );
  2711.  
  2712. extern Boolean XtCvtIntToFont(
  2713. #if NeedFunctionPrototypes
  2714.     Display*    /* dpy */,
  2715.     XrmValuePtr /* args */,    /* none */
  2716.     Cardinal*   /* num_args */,    
  2717.     XrmValuePtr    /* fromVal */,
  2718.     XrmValuePtr    /* toVal */,
  2719.     XtPointer*    /* closure_ret */
  2720. #endif
  2721. );
  2722.  
  2723. extern Boolean XtCvtIntToPixel(
  2724. #if NeedFunctionPrototypes
  2725.     Display*    /* dpy */,
  2726.     XrmValuePtr /* args */,    /* none */
  2727.     Cardinal*   /* num_args */,    
  2728.     XrmValuePtr    /* fromVal */,
  2729.     XrmValuePtr    /* toVal */,
  2730.     XtPointer*    /* closure_ret */
  2731. #endif
  2732. );
  2733.  
  2734. extern Boolean XtCvtIntToPixmap(
  2735. #if NeedFunctionPrototypes
  2736.     Display*    /* dpy */,
  2737.     XrmValuePtr /* args */,    /* none */
  2738.     Cardinal*   /* num_args */,    
  2739.     XrmValuePtr    /* fromVal */,
  2740.     XrmValuePtr    /* toVal */,
  2741.     XtPointer*    /* closure_ret */
  2742. #endif
  2743. );
  2744.  
  2745. #define XtCvtIntToPosition XtCvtIntToShort
  2746.  
  2747. extern Boolean XtCvtIntToShort(
  2748. #if NeedFunctionPrototypes
  2749.     Display*    /* dpy */,
  2750.     XrmValuePtr /* args */,    /* none */
  2751.     Cardinal*   /* num_args */,    
  2752.     XrmValuePtr    /* fromVal */,
  2753.     XrmValuePtr    /* toVal */,
  2754.     XtPointer*    /* closure_ret */
  2755. #endif
  2756. );
  2757.  
  2758. extern Boolean XtCvtIntToUnsignedChar(
  2759. #if NeedFunctionPrototypes
  2760.     Display*    /* dpy */,
  2761.     XrmValuePtr /* args */,    /* none */
  2762.     Cardinal*   /* num_args */,    
  2763.     XrmValuePtr    /* fromVal */,
  2764.     XrmValuePtr    /* toVal */,
  2765.     XtPointer*    /* closure_ret */
  2766. #endif
  2767. );
  2768.  
  2769. /* Color converter */
  2770.  
  2771. extern Boolean XtCvtColorToPixel(
  2772. #if NeedFunctionPrototypes
  2773.     Display*    /* dpy */,
  2774.     XrmValuePtr /* args */,    /* none */
  2775.     Cardinal*   /* num_args */,    
  2776.     XrmValuePtr    /* fromVal */,
  2777.     XrmValuePtr    /* toVal */,
  2778.     XtPointer*    /* closure_ret */
  2779. #endif
  2780. );
  2781.  
  2782. /* Pixel converter */
  2783.  
  2784. #define XtCvtPixelToColor XtCvtIntToColor
  2785.  
  2786. #endif
  2787. _XFUNCPROTOEND
  2788.  
  2789. #endif /*_XtIntrinsic_h*/
  2790. /* DON'T ADD STUFF AFTER THIS #endif */
  2791.